package com.toolbox.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;

/**
 * <p>
 * Description：
 * </p>
 *
 * @author Mango
 * @version v1.0.0
 * @date 2023-11-20 17:47
 * @see com.toolbox.req
 */
@Data
@ToString
@Accessors(chain = true)
@ApiModel("登录——请求数据")
public class LoginReq {

    /**
     * 账号
     */
    @ApiModelProperty(value = "账号", position = 100)
    @NotBlank(message = "账号不能为空")
    private String account;

    /**
     * 密码
     */
    @ApiModelProperty(value = "密码", position = 100)
    @NotBlank(message = "密码不能为空")
    private String password;

    /**
     * 图形验证码
     */
    @ApiModelProperty(value = "图形验证码", position = 100)
    @NotBlank(message = "图形验证码不能为空")
    private String captcha;

}
